﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;

namespace NetworkDemo
{
    class MainMenu : MenuScreen
    {

        private bool connectingServer = false;
        public bool ConnectingServer
        {
            get { return connectingServer; }
            protected set { connectingServer = value; }
        }

        #region Init
        public MainMenu()
            : base(Resources.MainMenu)
        { }

        public override void LoadContent(ContentManager theContent)
        {
            MenuEntry startGame = new MenuEntry(Resources.StartGame);
            MenuEntry quitGame = new MenuEntry(Resources.QuitGame);

            startGame.Selected += ScreenManager.GameController.OnJoinGame;
            quitGame.Selected += ScreenManager.GameController.OnQuitGame;

            MenuEntries.Add(startGame);
            MenuEntries.Add(quitGame);
        }
        
        #endregion
        #region Input
        #endregion
    }
}
